<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<MessageInbox>>" %>
<%@ Import Namespace="TeamCommunitySolution.Domain.DataLayer.Base"%>

    <table width="100%" cellpadding="1" cellspacing="0">

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
              <img src="/Content/Interface/newmail.png" alt="New Mail" width="16" />
              <%= Html.ActionLink("__IMAGE_PLACEHOLDER__", "MessageInboxDelete", "CommunicationCenter", new { messageId=item.Id }, null).Replace("__IMAGE_PLACEHOLDER__", "<img src=\"/Content/Interface/deletemail.png\" width=\"16\" border=\"0\" />")%>
            </td>
            <td>
                <%= Html.Encode(item.UserFrom.NickName) %><br />
                <%= Html.Encode(String.Format("{0:d}", item.DateSent)) %>
            </td>
            <td>
                <%= Html.ActionLink(item.Title, "MessageInboxDetails", "CommunicationCenter", new {  id=item.Id }, null)%><br />
                <%= Html.Encode(item.ShortDescription) %>
            </td>
        </tr>
    
    <% } %>

    </table>

